package cn.com.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import cn.com.BaseActivity;
import cn.com.R;
import cn.com.TabHostMain;
/**
 * 朋友圈
 * @author ChonZY
 */
public class FriendsCircleActivity extends BaseActivity implements OnClickListener{
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.friendscircle);
		initView();
		
	}

	private void initView() {
		initHead();
		tv_centerTop.setText(R.string.tv_top_frinendcicle_center);
		tv_leftTop.setVisibility(View.VISIBLE);
		tv_rightTop.setVisibility(View.VISIBLE);
		tv_leftTop.setText(R.string.tv_top_back);
		tv_rightTop.setText("发帖");
		tv_leftTop.setOnClickListener(this);
		tv_rightTop.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		Intent intent = null ;
		switch (v.getId()) {
		case R.id.tv_toptitle_tv01_left_title: // back
			intent = new Intent(this,TabHostMain.class);
			intent.putExtra("main_tab_name", "FriendsCircleActivity");
			startActivity(intent);
			finish();
			break;

		case R.id.tv_toptitle_tv02_right_title: // 发帖
			intent = new Intent(this,PostActivity.class);
			startActivity(intent);
			
			break ; 
		}
	}

}
